import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/views/Login'
import Registered from '@/views/Registered'
import NavMenu from '@/views/NavMenu'
import Wages from '@/views/Wages'
import Personal from '@/views/Personal'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Registered',
      name: 'Registered',
      component: Registered
    },
    {
      path: '/NavMenu',
      name: 'NavMenu',
      component: NavMenu,
      redirect: '/Wages',
      children:[
        {
          path: '/Wages',
          name: 'Wages',
          component: Wages,
        },
        {
          path: '/Personal',
          name: 'Personal',
          component: Personal
        }
      ]
    },
    
  ]
})
